package com.atguigu.gmall.order.client;

import com.atguigu.gmall.model.order.OrderInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

import javax.servlet.http.HttpServletRequest;

/**
 * @Author: lx
 * @Time: 11:47
 * @Description:
 */
@FeignClient(name = "service-order")
public interface OrderFeignClient {

    @GetMapping("/api/order/auth/getTradeNo")
    public String getTradeNo();
    @GetMapping("/api/order/auth/getOrderInfo/{orderId}")
    public OrderInfo getOrderInfo(@PathVariable Long orderId);
}
